import base from '@/api/baseurl';
import request from '@/utils/request'

export function fetchTermScheme(query) {
  return request({
    baseURL:base.appBaseApi,
    url: '/CurveTerm/findTermScheme',
    method: 'get',
    params: query
  })
}

export function fetchListuserlp(query) {
  return request({
    baseURL:base.appBaseApi,
    url: '/paramters/findparametersuserlp',
    method: 'get',
    params: query
  })
}


//单行删除
export function deleteTermScheme(query) {
  return request({
    baseURL:base.appBaseApi,
    url: '/CurveTerm/delTermScheme',
    method: 'get',
    params: query
  })
}



export function addTermScheme(data) {
  return request({
    baseURL:base.appBaseApi,
    url: '/CurveTerm/addTermScheme',
    method: 'post',
    data
  })
}

export function updateTermScheme(data) {
  return request({
    baseURL:base.appBaseApi,
    url: '/CurveTerm/updateTermScheme',
    method: 'post',
    data
  })
}

  export function batchDeleteTermScheme(data) {
    return request({
      baseURL:base.appBaseApi,
      url: '/CurveTerm/delManyTermScheme',
      method: 'post',
      data
    })
  }

/**
 * 获取tpcode
 * @param {*} query 
 * @returns 
 */
export function addtpCode(query) {
  return request({
    baseURL:base.appBaseApi,
    url: '/CurveTerm/addtp_code',
    method: 'get',
    params: query
  })
}

  
